I have the following code and I need to insert a colum for every user defined attribute |
Re: Insert Column in a module When posting, surround your code with two of these: { c o d e }, without the spaces.
AttrDef ad
Module m = current
string attrName
int count = 0
Column col
for col in m do
{ count++}
print "Col Count = " count"\n"
for ad in m do
{
if ((ad.object) && (!ad.system))
{
attrName = ad.name
if((attrName == "RTF NonShpPict") || (attrName == "RTF ShpPict"))
{
attrName = null
}
else
{ print "Inserting column " count "\n"
col = insert (column count)
attribute(col, attrName)
width(col, 200)
count ++
}
}
}
|
Re: Insert Column in a module |